package com.skyz.wrap.manager;

import android.content.Context;

import com.skyz.base.util.SharedPreferenceUtils;

public class AppInfoManager {

    private static final String KEY_FIRST_USE = "FIRST_USE";

    private AppInfoManager() {
    }

    private static class InstanceHolder {
        private static final AppInfoManager instance = new AppInfoManager();
    }

    public static AppInfoManager getInstance() {
        return InstanceHolder.instance;
    }

    public boolean getFirstUse(Context context) {
        return SharedPreferenceUtils.getBooleanValue(context, KEY_FIRST_USE, true);
    }

    public void setFirstUse(Context context, boolean firstUse) {
        SharedPreferenceUtils.setValue(context, KEY_FIRST_USE, firstUse);
    }
}
